import React from 'react'

import { Button } from "antd"

import { withRouter,RouteComponentProps  } from "react-router-dom"

import CountOperation from "@components/CountOperation"
import ShowCount  from "@components/ShowCount"

import { getHomeBannerList } from "@services/api"


const PageA = ({ history } : RouteComponentProps) => {

    const getList = async () => {
        try {
            const res = await getHomeBannerList();
            console.log(res);
        }catch(error){
            console.log(error);
        }
    }
    return (
        <div>
            {/* <CountOperation />
            <ShowCount /> */}
            <Button onClick={getList}>获取首页数据</Button>
        </div>
    )
}
export default withRouter(PageA)